import selectable from './selectable'

const install = function(Vue) {
  Vue.directive('el-selectable', {
    inserted: selectable,
    updated: selectable
  })
}

if (window.Vue) {
  window['el-selectable'] = selectable
  Vue.use(install); // eslint-disable-line
}

selectable.install = install
export default selectable
